<html>
<body>
A 'substr()' call can behave as array access, but hiding some error-handling logic behind as well.
Using array access is a preferred way, because you have to implicitly write (read as document) errors handling code.
</body>
</html>